package com.yanqu.road.entity.log.cross.apprentice;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;

@FieldTypeAnnotation(tableName = "t_c_log_apprentice_do_project", autoSave = true, dataUpload = true, eventName = "attos_end", uploadCk = true, desc = "爱徒养成-执行项目日志", isCross = true)
public class LogCrossApprenticeDoProject extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动ID", dataAttribute = "activityid", isIndex = true)
    private int activityId;

    @FieldTypeAnnotation(desc = "用户id", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(desc = "行程次数", dataAttribute = "attos_tripnum")
    private int doProjectNum;

    @FieldTypeAnnotation(desc = "项目IDS", dataAttribute = "attos_itemlist")
    private String projectId;

    @FieldTypeAnnotation(desc = "单次消耗的体力", dataAttribute = "attos_use")
    private int costEnergy;

    @FieldTypeAnnotation(desc = "道具奖励", dataAttribute = "attos_get")
    private String propReward;

    @FieldTypeAnnotation(desc = "天资奖励", dataAttribute = "attos_talentget")
    private String talentReward;

    @FieldTypeAnnotation(desc = "触发小考的小考index，没触发小考为0", dataAttribute = "attos_quiznum")
    private int examIndex;

    @FieldTypeAnnotation(desc = "本次生效的buff项目ID", dataAttribute = "attos_useitem")
    private String buffProjectIds;

    public LogCrossApprenticeDoProject(int activityId, long userId, int doProjectNum, String projectId, int costEnergy, String propReward, String talentReward, int examIndex, String buffProjectIds) {
        this.activityId = activityId;
        this.userId = userId;
        this.doProjectNum = doProjectNum;
        this.projectId = projectId;
        this.costEnergy = costEnergy;
        this.propReward = propReward;
        this.talentReward = talentReward;
        this.examIndex = examIndex;
        this.buffProjectIds = buffProjectIds;
    }

    @Override
    public long getUserId() {
        return userId;
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getDoProjectNum() {
        return doProjectNum;
    }

    public void setDoProjectNum(int doProjectNum) {
        this.doProjectNum = doProjectNum;
    }

    public String getProjectId() {
        return projectId;
    }

    public void setProjectId(String projectId) {
        this.projectId = projectId;
    }

    public int getCostEnergy() {
        return costEnergy;
    }

    public void setCostEnergy(int costEnergy) {
        this.costEnergy = costEnergy;
    }

    public String getPropReward() {
        return propReward;
    }

    public void setPropReward(String propReward) {
        this.propReward = propReward;
    }

    public String getTalentReward() {
        return talentReward;
    }

    public void setTalentReward(String talentReward) {
        this.talentReward = talentReward;
    }
}
